import httpInstance from "@/utils/http";


//获取订单地址详情
export const getCheckInfoAPI = () => {
  return httpInstance.get('/member/order/pre')
}

//创建订单

export const createOrderAPI = (data) => {
  return httpInstance.post('/member/order',
    data
  )
}

//删除地址
export const delAddressAPI = (id) => {
  return httpInstance.delete(`/member/address/${id}`)
}

//添加收获地址
export const addAddressAPI = (data) => {
  return httpInstance.post('/member/address',data)
}
